package com.link4a.doms.vo;

import org.apache.commons.lang3.StringUtils;

import com.link4a.doms.dao.Condition;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class DriverCondition extends Condition {

	private String name;
	private String type;
	
	public String getName() {
		return toPattern(name);
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getDefaultSortProperty() {
		return "name";
	}

	public String getType() {
		return StringUtils.trimToNull(type);
	}

	public void setType(String type) {
		this.type = type;
	}
}
